#import <UIKit/UIKit.h>
#import <EventKit/EKEvent.h>

#import "framework/FWListView.h"
#import "PICalListAccess.h"
#import "PICalTimeSummary.h"
#import "PICommon.h"
#import "PIEvent.h"
#import "PICalStatus.h"


@class LITableView;
@class PIPlugin;
@class FWApplication;
@class FWColorIconView;
@class FWIconDotView;


@interface PICalView : FWListView
{
    kPICalViewStyle viewStyle;
    BOOL combineHighlight;
}

@property (retain) LILabel* startTime;
@property (retain) LILabel* endTime;
@property (retain) FWColorIconView* availability;
@property (retain) FWColorIconView* repeat;
@property (retain) FWColorIconView* attendees;
@property (retain) FWColorIconView* reminder;
@property (retain) PICalTimeSummary* timeSummary;
@property (retain) FWColorIconView* alarm;
@property (assign) BOOL combineHighlight;


- (id)initWithFrame:(CGRect)frame table:(LITableView *)table application:(FWApplication*)appl;
- (void)dealloc;

- (void)setViewForTable:(LITableView *)table event:(PIEvent *)event style:(kPICalViewStyle)style showDetail:(ShowDatesOptions)showDetails showCalendar:(BOOL)calendar showDate:(BOOL)showDate showAvailability:(BOOL)showAvail lowColour:(BOOL)lowColour application:(FWApplication *)app;

- (void)addHeader:(LITableView*)table;
- (void)removeHeader;

@end
